import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from "../views/Login";
import Home from "../views/Home";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: '登录页',
        component: Login,
        hidden: true //这个hidden不是隐藏，而是一个标记
    },
    {
        path: '/home',
        name: '主页',
        component: Home,
        hidden: true
    }
]

const router = new VueRouter({
    routes
})

export default router
